package com.aos.erp.manager.remote.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @program: erp
 * @description: 同步角色
 * @author: tanzhiyu
 * @create: 2018-11-23 11:14
 **/
@Getter
@Setter
@ApiModel("用户角色")
public class SynRole implements Serializable {
    public SynRole() {
    }

    @Override
    public String toString() {
        return "Role{" +
                "organizationList=" + organizationList +
                ", menuList=" + menuList +
                ", elementList=" + elementList +
                ", orgList=" + orgList +
                ", roleName='" + roleName + '\'' +
                ", applicationId=" + applicationId +
                ", comment='" + comment + '\'' +
                ", status=" + status +
                ", usernames='" + usernames + '\'' +
                '}';
    }

    @ApiModelProperty(value = "机构id集合")
    private List<Long> organizationList;

    @ApiModelProperty(value = "菜单id集合")
    private List<Long> menuList;

    @ApiModelProperty(value = "元素ID集合")
    private List<Long> elementList;

    @ApiModelProperty(value = "机构数据访问权限ID集合")
    private List<Long> orgList;
    /* private Long organizationList[]={};
     private Long[]  menuList;
     private Long[]  elementList;
     private Long[]  orgList;*/
    @ApiModelProperty(value = "角色名字")
    private String roleName;

    @ApiModelProperty(value = "应用id")
    private Long applicationId;

    @ApiModelProperty(value = "备注")
    private String comment;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "当前用户登录名")
    private String usernames;
}
